# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=fatrace
pkgver=0.16.3
pkgrel=0
pkgdesc="Report system wide file access events"
url="https://github.com/martinpitt/fatrace"
license="GPL-3.0-or-later"
arch="all"
depends="python3 powertop"
subpackages="$pkgname-doc"
source="https://github.com/martinpitt/fatrace/archive/$pkgver/fatrace-$pkgver.tar.gz"
options="!check" # tests require root privileges

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
54ffcf4da48c0bd43373322d29352dfd50d8bd0cff8bba172ec30881fcdc4fa9fa3bcdcb86396331baada42ec87a03b4005b4d1a1c95e4e5c947395a80b61839  fatrace-0.16.3.tar.gz
"
